const Mock = require('mockjs')
const fs = require('fs')
const data = Mock.mock({
    "banners|4": ["@image(750x400, @color, image)"],
    "hotList|10": [{
        "id": "@id",
        "image": "@image(60x60, @color, image)",
        "title": "@ctitle"
    }],
})

fs.writeFileSync('data.json', JSON.stringify(data))